package com.demo15;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class OutputStreamWriterDemo {

    public static void main(String[] args) throws IOException {
        //获取数据的基本操作效果
        OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("idea_demo\\java\\test.txt"));

        //写字符
        osw.write(66);

        osw.flush();
    }
}

